<?php

// mbilling/BillingBundle/Entity/usersBillsSums.php
namespace mbilling\BillingBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;

/**
 * @ORM\Entity
 */
class usersBillsSums
{
    /**
     * @ORM\Id
     * @ORM\Column(type="integer")
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    protected $id;
 
    /**
     * @ORM\Column(type="float")
     * @assert\NotBlank
     */
    protected $summ;
    
    /**
     * @ORM\Column(type="boolean")
     */
    protected $is_active;

    public function setId($id)
    {
        $this->id = $id;
    }
    public function getId()
    {
        return $this->id;
    }

    public function setSumm($summ)
    {
        $this->summ = $summ;
    }
    public function getSumm()
    {
        return $this->summ;
    }

    public function setIsActive($is_active)
    {
        $this->is_active = $is_active;
    }
    public function getIsActive()
    {
        return $this->is_active;
    }
    
    public function initDefaultEntity()
    {
        $this->setSumm('16.6');
        $this->setIsActive('1');
        return $this;
    }
}
?>
